class-based TF-IDF